CC=g++
CFLAGS=-Wall -g -DDEBUG
BASEPATH = ~/Thesis/CppProjects
exeName = demo
objMain = main
obj1 = pixelimage
obj2 = pixelprocessor
objects = src/$(objMain)/$(objMain).o \
					src/$(obj1)/$(obj1).o \
					src/$(obj2)/$(obj2).o

$(exeName): $(objects)
	$(CC) -o $(exeName) $(objects)
$(objMain): $(objMain)/$(objMain).cpp
	$(CC) -o $(objMain)$(objMain).cpp
$(obj1).o: $(obj1)/$(obj1).cpp
	$(CC) -o $(obj1)/$(obj1).cpp
$(obj2).o: $(obj2)/$(obj2).cpp
	$(CC) -o $(obj2)/$(obj2).cpp

clean:
	rm -f $(exeName) $(objects)
